Skip to main content

Radio Button

AutomatR.Windows.Activities.RadioButton

The "Radio Button" activity in AutomatR facilitates the selection or clearing of radio buttons within a Windows application. This activity is especially useful when automating interactions with graphical user interfaces (GUIs) that contain radio button controls.

Properties

NameDescription
Input
Windows SelectorSpecifies the selector for identifying the radio button within the Windows application. You can either directly provide a selector or use the "Element" property to select the element using the Windows Selector window.
Windows ElementAllows you to choose the target radio button by indicating the element on the application. Use the browse button to open the Windows Selector window for assistance.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
TimeoutSpecifies the time limit (in seconds) for the activity to be executed before throwing an exception. If not provided, the default timeout is used.
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. This delay can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Radio Button" activity onto the workflow.
  2. Configure the properties by providing either the Windows Selector or the Windows Element (using the Windows Selector window).
  3. Optionally, configure the timeout and delay, and customize the display name.
  4. Execute the workflow to select or clear the specified radio button within the Windows application.

Example: Consider an example where the "Radio Button" activity is used to select a specific radio button in a Windows application:

Radio Button:
Display Name: "Select Gender"
Windows Selector: "{...}" (Selector for the gender radio button)
Timeout: 10
Delay: 2

In this example, the activity selects the gender radio button within the Windows application after a delay of 2 seconds, and it has a timeout of 10 seconds.